home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
NEW_TECH
/
WINCMD.ZIP
/
WINCMC.ZIP
/
MAKEFILE.MSC
next >
Wrap
Text File
|
1993-04-07
|
2KB
|
69 lines
#==========================================================
# Makefile for Win EXEs under Microsoft C 6.0
# Copyright (c) 1993 Douglas Boling
#==========================================================
#----------------------------------------------------------
# Target filename
#----------------------------------------------------------
NAME = wincmd
#----------------------------------------------------------
# Define DEBUG = 1 to add debug info to EXE
#----------------------------------------------------------
DEBUG = 0
#----------------------------------------------------------
# C compiler switches
#
# -c Compile, no link
# -Gsw No Stack check, Compile for Windows
# -Ow Optimize. Assume no aliases
# -W3 Print warnings to level 3
# -Zp Pack Structures or...
# -Zpi If Debug info needed
# -Od Disable Optimization
#----------------------------------------------------------
!if $(DEBUG)
CSWITCH = -c -Gsw -Ow -W3 -Zpi -Od
!else
CSWITCH = -c -Gsw -Ow -W3 -Zp
!endif
#----------------------------------------------------------
# Link Switches
#
# /Align:16 Align segments on 16 byte boundries
# /CO If debug info needed
#----------------------------------------------------------
!if $(DEBUG)
LSWITCH = /CO /align:16
!else
LSWITCH = /align:16
!endif
#----------------------------------------------------------
# Lib files
#
# /nod No defaults
# slibcew Small model lib for Windows
# libw Windows API lib
# commdlg Windows Common Dialog Box lib
#----------------------------------------------------------
LIBS = /nod slibcew libw commdlg
#----------------------------------------------------------
# Make EXE
#----------------------------------------------------------
$(NAME).exe : $(NAME).obj $(NAME).def $(NAME).res
link $(LSWITCH) $(NAME), $(NAME).exe, NUL, $(LIBS), $(NAME)
rc $(NAME).res
$(NAME).obj : $(NAME).c $(NAME).h
cl $(CSWITCH) $(NAME).c
$(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
rc -r $(NAME).rc